//
//  AppUtils.h
//  EcmDoctor
//
//  Created by 张进 on 15/7/6.
//  Copyright (c) 2015年 张进. All rights reserved.
//



#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


@interface AppUtils : NSObject

+(UIColor *)getBackground;
+(UIImage *)scaleImage:(UIImage *)img ToSize:(CGSize)targetSize;


+(UIImage *)mergeImage:(UIImage *)fromImg toImageCenter:(UIImage *)toImg;

+(UIImage*)getSubImage:(UIImage*)img withRect:(CGRect)rect;

//创建纯色图片
+ (UIImage *)createImageWithColor:(UIColor *)color;

//隐藏键盘
+ (void)hideKeyBoard;

//App服务自定义名称
+(NSString *)appServiceName;
//存储的Token的key
+(NSString *)tokenKey;

//判断字符串是否为空
+ (BOOL) isBlankString:(NSString *)string;


//获取屏幕尺寸
+(CGRect)getScreenBounds;

//本应用导航栏标题（自定义字体）
+(UILabel *)generateNavigationItemTitleViewWithTitle:(NSString *)text;
//获取应用自定义字体
+(UIFont *)getCustomFontWithSize:(CGFloat)size;
//获取应用自定义字体17号
+(UIFont *)getCustomFontWithSize17;
//导航栏按钮（自定义字体）
+(UIBarButtonItem *)generateNavigationBarButtonWithTitle:(NSString *)text withTarget:(id)target action:(SEL)selector;

+ (NSString *)weekForClinic:(NSString *)week;

@end
